<template>
  <div id="comment">
    <div class="comment-header">
      <div class="number-header">
        3.2w 条评论
        <div class="iconfont icon" @click="close">&#xe612;</div>
      </div>
    </div>

    <div class="comment-list">
      <div class="item">
        <div class="img-box"><img class="img" src="../../assets/img/1-1.jpeg" /></div>

        <div class="comment-content">
          <div class="name">张三</div>
          <div class="content">我就爱学习</div>
        </div>
        <div class="icon-box">
          <div class="iconfont icon-love">&#xe68b;</div>
          <div class="love-number">0</div>
        </div>
      </div>
      <div class="item">
        <div class="img-box"><img class="img" src="../../assets/img/1-1.jpeg" /></div>
        <div class="comment-content">
          <div class="name">张三</div>
          <div class="content">我就爱学习</div>
        </div>
        <div class="icon-box">
          <div class="iconfont icon-love">&#xe68b;</div>
          <div class="love-number">0</div>
        </div>
      </div>
      <div class="item">
        <div class="img-box"><img class="img" src="../../assets/img/1-1.jpeg" /></div>
        <div class="comment-content">
          <div class="name">张三</div>
          <div class="content">我就爱学习</div>
        </div>
        <div class="icon-box">
          <div class="iconfont icon-love">&#xe68b;</div>
          <div class="love-number">0</div>
        </div>
      </div>
      <div class="item">
        <div class="img-box"><img class="img" src="../../assets/img/1-1.jpeg" /></div>
        <div class="comment-content">
          <div class="name">张三</div>
          <div class="content">我就爱学习</div>
        </div>
        <div class="icon-box">
          <div class="iconfont icon-love">&#xe68b;</div>
          <div class="love-number">0</div>
        </div>
      </div>
    </div>

    <div class="comment-footer">留下你精彩评论吧</div>
  </div>
</template>
<script>
export default {
  name: 'comment',
  methods: {
    close() {
      this.$emit('close')
    }
  }
};
</script>
<style scoped>
#comment {
  background: #fff;
  height: 10rem;
  border-radius: 0.3rem 0.3rem 0 0;
  position: relative;
  width: 100%;
}

#comment .comment-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.5rem;
  line-height: 0.5rem;
}

#comment .comment-header .number-header {
  width: 100%;
  text-align: center;
  font-size: 0.3rem;
  color: #000;
}

#comment .comment-header .number-header .icon {
  float: right;
  margin-right: 0.3rem;
}

#comment .comment-list {
  height: 8.7rem;
  width: 100%;
  overflow-x: hidden;
  overflow-y: scrolls;
  position: absolute;
  top: 0.5rem;
  left: 0;
  color: #000;
}

#comment .comment-list .item {
  height: 2rem;
  width: 100%;
}

#comment .comment-list .item .img-box {
  float: left;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  padding: 0.1rem 0.3rem;
  margin-top: 0.2rem;
}

#comment .comment-list .item .img-box .img {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
}

#comment .comment-list .item .comment-content {
  float: left;
  width: 70%;
  height: 1rem;
  margin-top: 0.2rem;
}

#comment .comment-list .item .comment-content .name {
  width: 100%;
  height: 0.5rem;
  line-height: 0.5rem;
  font-size: 0.35rem;
}

#comment .comment-list .item .comment-content .content {
  width: 100%;
  height: 0.5rem;
  line-height: 0.5rem;
  font-size: 0.28rem;
}

#comment .comment-list .item .icon-box {
  float: right;
  width: 10%;
  height: 1rem;
  text-align: center;
  margin-top: 0.2rem;
}

#comment .comment-list .item .icon-box .icon-love {
  width: 100%;
  height: 0.5rem;
  font-size: 0.3rem;
  line-height: 0.5rem;
}

#comment .comment-list .item .icon-box .love-number {
  width: 100%;
  height: 0.5rem;
  font-size: 0.3rem;
  line-height: 0.5rem;
}

#comment .comment-footer {
  height: 1rem;
  width: 100%;
  line-height: 1rem;
  font-size: 0.45rem;
  color: #666;
  position: absolute;
  bottom: 0;
  left: 0;
  padding-left: 0.3rem;
}
</style>
